/**
 * 
 */
package npap.cater.unr.edu.client.scaffold.place.customized;

import npap.cater.unr.edu.client.managed.request.ApplicationEntityTypesProcessor;
import npap.cater.unr.edu.client.managed.ui.ApplicationListPlaceRenderer;
import npap.cater.unr.edu.client.proxy.ContactProxy;
import npap.cater.unr.edu.client.proxy.FileProxy;
import npap.cater.unr.edu.client.proxy.ProjectProxy;
import npap.cater.unr.edu.client.scaffold.place.ProxyListPlace;

/**
 * @author Hao
 *
 */
public class CustomizedApplicationListPlaceRenderer extends
		ApplicationListPlaceRenderer {

	@Override
	public String render(ProxyListPlace object) {
        return new ApplicationEntityTypesProcessor<String>() {

            @Override
            public void handleContact(ContactProxy isNull) {
                setResult("Contacts");
            }

            @Override
            public void handleProject(ProjectProxy isNull) {
                setResult("Project Info");
            }

			@Override
			public void handleFile(FileProxy proxy) {
				// TODO Auto-generated method stub
				setResult("Files");
			}
        }.process(object.getProxyClass());
    }
	

}
